﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Foothill.Common.Logging
{
    public static class Log
    {
        private static ILogger _logger;
        
        static Log()
        {
            log4net.Config.XmlConfigurator.Configure();
            _logger = new Log4NetLogger();
        }

        public static void Write(FoothillModule module, LogLevel level, string message)
        {
            _logger.Log(module, level, message);
        }

        public static void Error(FoothillModule module, string message, Exception exception)
        {
            _logger.Error(module, message, exception);
        }

        public static void Error(FoothillModule module, string message)
        {
            _logger.Error(module, message);
        }
    }
}
